home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ddddrrrraaaawwwwmmmmooooddddeeee((((3333GGGG)))) ddddrrrraaaawwwwmmmmooooddddeeee((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- ddddrrrraaaawwwwmmmmooooddddeeee - selects which GL framebuffer is drawable
-
- CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- vvvvooooiiiidddd ddddrrrraaaawwwwmmmmooooddddeeee((((mmmmooooddddeeee))))
- lllloooonnnngggg mmmmooooddddeeee;;;;
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _m_o_d_e expects the identifier of the framebuffer to which GL drawing
- commands are to be directed:
-
- NNNNOOOORRRRMMMMAAAALLLLDDDDRRRRAAAAWWWW, which sets operations for the normal color and z
- buffer bitplanes.
-
- OOOOVVVVEEEERRRRDDDDRRRRAAAAWWWW, which sets operations for the overlay bitplanes.
-
- UUUUNNNNDDDDEEEERRRRDDDDRRRRAAAAWWWW, which sets operations for the underlay bitplanes.
-
- PPPPUUUUPPPPDDDDRRRRAAAAWWWW, which sets operations for the pop-up bitplanes.
-
- CCCCUUUURRRRSSSSOOOORRRRDDDDRRRRAAAAWWWW, which sets operations for the cursor.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The IRIS physical framebuffer is divided into 4 separate GL framebuffers:
- pop-up, overlay, normal, and underlay. ddddrrrraaaawwwwmmmmooooddddeeee specifies which of these
- four buffers is currently being controlled and modified by GL drawing and
- mode commands. Because ddddrrrraaaawwwwmmmmooooddddeeee cannot be set to multiple framebuffers,
- GL drawing commands affect only one of the four GL framebuffers at a
- time.
-
- The way that GL modes interact with ddddrrrraaaawwwwmmmmooooddddeeee is both complex and
- significant to the GL programmer. For example, each framebuffer
- maintains its own current color and its own color map, but linewidth is
- shared among all framebuffers. In general, modes that determine what is
- to be drawn into the framebuffers are shared; modes that control
- framebuffer resources are either multiply specified, or specified only
- for the normal framebuffer.
-
- A separate version of each of the following modes is maintained by each
- GL framebuffer. These modes are modified and read back based on the
- current draw mode:
-
- bbbbaaaacccckkkkbbbbuuuuffffffffeeeerrrr
- ccccmmmmooooddddeeee
- ccccoooolllloooorrrr or RRRRGGGGBBBBccccoooolllloooorrrr
- ddddoooouuuubbbblllleeeebbbbuuuuffffffffeeeerrrr
- ffffrrrroooonnnnttttbbbbuuuuffffffffeeeerrrr
- mmmmaaaappppccccoooolllloooorrrr (a separate color map per framebuffer)
- rrrreeeeaaaaddddssssoooouuuurrrrcccceeee
- RRRRGGGGBBBBmmmmooooddddeeee
- ssssiiiinnnngggglllleeeebbbbuuuuffffffffeeeerrrr
- wwwwrrrriiiitttteeeemmmmaaaasssskkkk or RRRRGGGGBBBBwwwwrrrriiiitttteeeemmmmaaaasssskkkk
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ddddrrrraaaawwwwmmmmooooddddeeee((((3333GGGG)))) ddddrrrraaaawwwwmmmmooooddddeeee((((3333GGGG))))
-
-
-
- The following modes currently affect only the operation of the normal
- framebuffer. They must therefore be modified only while draw mode is
- NNNNOOOORRRRMMMMAAAALLLLDDDDRRRRAAAAWWWW. As features are added to the GL, these modes may become
- available in other draw modes. When this happens, a separate mode will
- be maintained for each draw mode.
-
- aaaaccccssssiiiizzzzeeee
- bbbblllliiiinnnnkkkk
- ccccyyyycccclllleeeemmmmaaaapppp
- mmmmuuuullllttttiiiimmmmaaaapppp
- oooonnnneeeemmmmaaaapppp
- sssseeeettttmmmmaaaapppp
- sssstttteeeennnncccciiiillll
- sssstttteeeennnnssssiiiizzzzeeee
- sssswwwwrrrriiiitttteeeemmmmaaaasssskkkk
- zzzzbbbbuuuuffffffffeeeerrrr
- zzzzddddrrrraaaawwww
- zzzzffffuuuunnnnccccttttiiiioooonnnn
- zzzzssssoooouuuurrrrcccceeee
- zzzzwwwwrrrriiiitttteeeemmmmaaaasssskkkk
-
- All other modes, including matrices, viewports, graphics and character
- positions, lighting, and many primitive rendering options, are shared by
- the four GL framebuffers.
-
- Draw mode CCCCUUUURRRRSSSSOOOORRRRDDDDRRRRAAAAWWWW differs from the others. True bitplanes for the
- cursor do not exist; there is no current color or writemask in this
- drawing mode. However, the cursor does have its own color map, and when
- in this mode, mmmmaaaappppccccoooolllloooorrrr and ggggeeeettttmmmmccccoooolllloooorrrr access it.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- acsize, cmode, c, color, cpack, gconfig, getcolor, getmcolor,
- getwritemask, mapcolor, overlay, stencil, underlay, wmpack, writemask
-
- NNNNOOOOTTTTEEEESSSS
- This routine is available only in immediate mode.
-
- Some GL modes that are shared by all draw modes are not implemented by
- the popup, overlay, or underlay framebuffers. For example, the Personal
- Iris does not do Gouraud shading in these framebuffers. It is important
- for the programmer to explicitly disable modes that are shared, but not
- desired, when in draw modes other than NNNNOOOORRRRMMMMAAAALLLLDDDDRRRRAAAAWWWW. Otherwise the code
- may function differently on different platforms.
-
- Iris Entry graphics do not support OOOOVVVVEEEERRRRDDDDRRRRAAAAWWWW or UUUUNNNNDDDDEEEERRRRDDDDRRRRAAAAWWWW draw modes. Use
- ggggeeeettttggggddddeeeesssscccc to determine the number of bitplanes available for OOOOVVVVEEEERRRRDDDDRRRRAAAAWWWW or
- UUUUNNNNDDDDEEEERRRRDDDDRRRRAAAAWWWW on any machine.
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-